// 引入模块
const User = require("./module/user")
const News = require("./module/news")

/* User.find({}, function(err, doc) {
  if(err) {
    console.log(err)
    return
  }
  console.log(doc)
}) */


const news1 = new News({
  title: "新闻123",
  desc: "tHis is a nEws333",
  content: "内容"
})
news1.save(function(err) {
  if(err) {
    console.log(err)
    return
  }
  console.log("新增成功")
});
